<section class="content" style="padding: 10px">
    <div class="row">
        <div class="col-12">
            <div class="card card-default">
                <div class="card-header">
                    <h3 class="card-title">搜索</h3>
                </div>
                <div class="card-body">
                    <form role="form" data-form="1" data-search-table-id="1" data-title="自定义标题">
                        <div class="form-inline">

                            <div class="form-group">
                                <label>名称：</label>
                                <input type="text" class="form-control" name="name" placeholder="请输入名称">
                            </div>
                            <div class="form-group">
                                <label>资源所属：</label>
                                <select name="belong" id="" class="selectpicker">
                                    {:options,$opts}
                                </select>
                            </div>
                            <div class="form-group">
                                <label>唯一标识符：</label>
                                <input type="text" class="form-control" name="code" placeholder="请输入唯一标识符">
                            </div>
                            <div class="form-group">
                                <label>路径：</label>
                                <input type="text" class="form-control" name="path" placeholder="请输入路径">
                            </div>
                            <div class="form-group" style="margin-left: 10px">
                                <button type="submit" class="btn btn-primary">提交</button>
                                <button type="reset" class="btn btn-default">重置</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</section>


<div class="content">
    <div class="card-body table-responsive" style="padding-top: 0">
        <a class="btn btn-outline-primary btn-table-tool btn-dialog" data-intop="1" data-area="60%,80%" title="新增"
           href="?app=res@add"><i class="fa fa-plus"></i>新增</a>
    </div>
    <div class="card-body table-responsive" style="padding-top: 0">
        <table data-table="1" data-url="?app=res@ajaxdata" id="table1" class="table table-hover">
            <thead>
            <tr>

                <th data-field="name">名称</th>
                <th data-field="code">唯一标识符</th>
                <th data-field="path">路径</th>
                <th data-field="belong">资源所属</th>
                <th data-field="preview">预览</th>
                <th data-formatter="epiiFormatter.btns"
                    data-intop="1"
                    data-area="75%,50%"
                    data-btns="edit,del"
                    data-edit-url="?app=res@add&id={id}"
                    data-del-url="?app=res@del&id={id}"
                    data-edit-title="编辑">
                    操作
                </th>
            </tr>
            </thead>
        </table>
    </div>
</div>
